package Service.impl;

import Mapper.RoomMapper;
import Pojo.Room;
import Service.RoomService;
import Util.BaseMapper;

import java.util.List;

public class RoomServiceImpl implements RoomService {
    private RoomMapper roomMapper= BaseMapper.getSqlSession().getMapper(RoomMapper.class);
    @Override
    public List<Room> RoomQueryAll() {
        return roomMapper.RoomQueryAll();
    }

    @Override
    public Room RoomQueryById(Integer roomId) {
        return roomMapper.RoomQueryById(roomId);
    }
}
